using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeDeadeye:Upgrade {

	protected override void ProjectileFiredEventHandler(object _sender,ProjectileEventArgs e) {
		base.ProjectileFiredEventHandler(_sender,e);
		float amount;
		if(e.stat.inaccuracy>1) amount=1;
		else amount=Mathf.Min(1+(1-e.stat.inaccuracy)*0.2f,1.5f);

		e.stat.damage.AddMultAdd(amount-1,0);

	}

}
